revision:
The "namespaceURI property" returns the URI of an elements namespace. The property is read-only and has no practical use in HTML.
The namespace URI for HTML elements in HTML documents is : http://www.w3.org/1999/xhtml
Syntax:
element.namespaceURI : the URI of the elements's namespace: "null{} if the element is not in a namespace.
property value:
none :
example
The namespace URI of this paragraph is:
<div> <p id="par">The namespace URI of this paragraph is: <span id="prop"></span></p> </div> <script> let uri = document.getElementById("prop").namespaceURI; document.getElementById("prop").innerHTML = uri; </script>